package com.muyu.danmo.mapper;

import com.muyu.danmo.domain.DanmoCity;
import com.muyu.danmo.domain.DanmoCounty;
import com.muyu.danmo.domain.DanmoProvince;
import com.muyu.danmo.req.DanmoCountyReq;
import com.muyu.danmo.req.DanmoProvinceReq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 省份Mapper接口
 *
 * @author yangle
 * @date 2024-09-19
 */
public interface DanmoProvinceMapper
{
    /**
     * 查询省份
     *
     * @param id 省份主键
     * @return 省份
     */
    public DanmoProvince selectDanmoProvinceById(Long id);

    /**
     * 查询省份列表
     *
     * @param danmoProvince 省份
     * @return 省份集合
     */
    public List<DanmoProvince> selectDanmoProvinceList(DanmoProvince danmoProvince);

    /**
     * 新增省份
     *
     * @param danmoProvince 省份
     * @return 结果
     */
    public int insertDanmoProvince(DanmoProvince danmoProvince);

    /**
     * 修改省份
     *
     * @param danmoProvince 省份
     * @return 结果
     */
    public int updateDanmoProvince(DanmoProvince danmoProvince);

    /**
     * 删除省份
     *
     * @param id 省份主键
     * @return 结果
     */
    public int deleteDanmoProvinceById(Long id);

    /**
     * 批量删除省份
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDanmoProvinceByIds(Long[] ids);

    List<DanmoProvince> selcetProvince();


    List<DanmoProvince> selectProvince(@Param("cityCode") String cityCode, @Param("countyCode") String countyCode);

    List<DanmoCity> selectProvinceCode( DanmoProvinceReq danmoProvinceReq);

    List<DanmoCounty> selectCityCode(DanmoCountyReq danmoCountyReq);

    List<DanmoProvince> selectAllProvinces();


}
